package cn.net.dckj.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.net.dckj.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 系统附件对象 sys_attachment
 * 
 * @author dckj
 * @date 2019-10-15
 */
public class SysAttachment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 下载状态(0未下载过,1已下载过) */
    private String downloadStatus;

    /** 上传日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date uploadDate;

    /** 附件路径 */
    private String attachmentPath;

    /** 附件大小 */
    private Long attachmentSize;

    /** 附件类型 */
    private String attachmentType;

    /** 附件名称 */
    private String attachmentName;

    /** 附件版本号 */
    private String attachmentRev;

    /** 附件id */
    private String attachmentId;

    /** 实体类名 */
    private String entityName;

    /** 主表id */
    private Long mainId;

    /**
     * 列表展示样式 tile:平铺 list：列表（默认）
     */
    private String viewMode;

    public void setDownloadStatus(String downloadStatus) 
    {
        this.downloadStatus = downloadStatus;
    }

    public String getDownloadStatus() 
    {
        return downloadStatus;
    }
    public void setUploadDate(Date uploadDate) 
    {
        this.uploadDate = uploadDate;
    }

    public Date getUploadDate() 
    {
        return uploadDate;
    }
    public void setAttachmentPath(String attachmentPath) 
    {
        this.attachmentPath = attachmentPath;
    }

    public String getAttachmentPath() 
    {
        return attachmentPath;
    }
    public void setAttachmentSize(Long attachmentSize) 
    {
        this.attachmentSize = attachmentSize;
    }

    public Long getAttachmentSize() 
    {
        return attachmentSize;
    }
    public void setAttachmentType(String attachmentType) 
    {
        this.attachmentType = attachmentType;
    }

    public String getAttachmentType() 
    {
        return attachmentType;
    }
    public void setAttachmentName(String attachmentName) 
    {
        this.attachmentName = attachmentName;
    }

    public String getAttachmentName() 
    {
        return attachmentName;
    }
    public void setAttachmentRev(String attachmentRev) 
    {
        this.attachmentRev = attachmentRev;
    }

    public String getAttachmentRev() 
    {
        return attachmentRev;
    }
    public void setAttachmentId(String attachmentId) 
    {
        this.attachmentId = attachmentId;
    }

    public String getAttachmentId() 
    {
        return attachmentId;
    }
    public void setEntityName(String entityName) 
    {
        this.entityName = entityName;
    }

    public String getEntityName() 
    {
        return entityName;
    }
    public void setMainId(Long mainId) 
    {
        this.mainId = mainId;
    }

    public Long getMainId() 
    {
        return mainId;
    }

    public String getViewMode() {
        return viewMode;
    }

    public void setViewMode(String viewMode) {
        this.viewMode = viewMode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("delReason", getDelReason())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("downloadStatus", getDownloadStatus())
            .append("uploadDate", getUploadDate())
            .append("attachmentPath", getAttachmentPath())
            .append("attachmentSize", getAttachmentSize())
            .append("attachmentType", getAttachmentType())
            .append("attachmentName", getAttachmentName())
            .append("attachmentRev", getAttachmentRev())
            .append("attachmentId", getAttachmentId())
            .append("entityName", getEntityName())
            .append("id", getId())
            .append("mainId", getMainId())
            .toString();
    }
}
